quickreply in archive
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #1
quickreply in archive
I am trying to add quick reply to archive..
I have done the login and logout in the archive now I wanna add quick reply to it...

if I copy the quick reply code from show thread and put it into the proper place in the archive`s index.php and in place of the template calls if I add the template directly, will it work?

[Image: banner.png]
09-22-2010 02:16 PM
Find all posts by this user Quote this message in a reply
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #2
RE: quickreply in archive
I don't think it works, unless you add some code to archive/index.php file. Like the one below;

PHP Code:
$posthash = md5($mybb->user['uid'].random_str());
$codebuttons = build_mycode_inserter();
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");

and add $quickreply variable to archive template.


[Image: logo.png]

[Image: twitter.png]
(This post was last modified: 09-22-2010 03:51 PM by Imran.)
09-22-2010 03:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: quickreply in archive
Maybe, depending on how good you are with copying and pasting.  Give it a shot if you feel like it.
You probably won't get AJAX working easily though.

My Blog
09-22-2010 03:56 PM
Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #4
RE: quickreply in archive
Imran Wrote:I don't think it works, unless you add some code to archive/index.php file. Like the one below;

PHP Code:
$posthash = md5($mybb->user['uid'].random_str());
$codebuttons = build_mycode_inserter();
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");


and add $quickreply variable to archive template.

Yes I know but in place of eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";"); I think I have to directly put the html because archive do not use template system.


(09-22-2010 03:56 PM)ZiNgA BuRgA Wrote:  Maybe, depending on how good you are with copying and pasting.  Give it a shot if you feel like it.
You probably won't get AJAX working easily though.

Believe me I am very good at copying, I can pass a whole exam just by copying....WinkTongue

ok I will give it a try...
I do not want ajax, I will just make the page to reload...

[Image: banner.png]
09-22-2010 07:40 PM
Find all posts by this user Quote this message in a reply
FBI Offline
Junior Member
**
Posts: 19
Joined: Apr 2010
Post: #5
RE: quickreply in archive
You can try to create a new theme New Reply Templates - newreply-archive. And create newreply-archive.php version (which is removing unnecessary code for normal version) and then redirecting back to index.php.

And then modified archive/index.php, to create login form.
This will help our visitor who connect from expensive data mobile GPRS/3G charge Smile

Brand New Portal from MyBB Indonesia  to get local Bahasa (language) support.
My Unique Plugin here Smile
10-17-2010 12:14 AM
Find all posts by this user Quote this message in a reply
clemens Offline
Junior Member
**
Posts: 5
Joined: Jan 2011
Post: #6
RE: quickreply in archive
Have you figured it out yet?
01-20-2011 01:03 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: