News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

AJAX Instant Quick Reply

Started by SlammedDime, May 29, 2008, 06:59:11 PM

Previous topic - Next topic

SlammedDime

Quote from: asudhakar on July 15, 2008, 03:28:33 PM
Quote from: asudhakar on July 13, 2008, 04:59:03 PM
Quote from: SlammedDime on July 12, 2008, 03:07:51 PM
asudhakar - You can post your display.template.php here and I can take a look at it.

Sure here i go .
First File is Display.php - Showed error - From sources
Second File is Dispaly.template.php - showed error - From Themes/Default

Kindly do let me know what changes you have or you are going to make.
So that next time i could try it when upgrading or reinstalling the mod.

Thanks a lot in Advance.  :)


Hope you will help me SlammedDine. Wait for few days

http://www.simplemachines.org/community/index.php?topic=241917.msg1614332#msg1614332
Sorry bud, give these a shot.

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Sudhakar Arjunan

SlammedDime,

I have downloaded and tried replacing the existing file, and i have received many series errors as shown and attached below.

Hope you could checkout and help me.


Quote
1) When i first replaced the dispaly.template.php file in default Themes folder

Fatal error: Call to undefined function displayThumbsUpButton() in /home/itacumen/public_html/forum/Sources/Load.php(1912) : eval()'d code on line 570

Note : Image 1 attached with error.

2) When i have replaced the display.php file in the souce folder.

Fatal error: require_once() [function.require]: Failed opening required 'ThumbsUp.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/itacumen/public_html/forum/Sources/Display.php on line 281

Note : Image 2 attached with error.


Kindly check out and help me Slammeddime.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

SlammedDime

That has to do with some Thumbs up mod that you have installed (or perhaps had installed).  Neither of those errors have anything to do with my mod.  It was present in the files you originally uploaded here for me to modify, so it has nothing to do with the modifications I did.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Regashi


SlammedDime

What doesn't work about it?  Can you give me a link to your site and a test account?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Sudhakar Arjunan

Quote from: SlammedDime on July 16, 2008, 05:45:05 PM
That has to do with some Thumbs up mod that you have installed (or perhaps had installed).  Neither of those errors have anything to do with my mod.  It was present in the files you originally uploaded here for me to modify, so it has nothing to do with the modifications I did.

But i have installed thumbup mod and uninstalled here.
I understand, that your mod is not doing anything wrong. But no idea for me.

Hope to wait and manually upload later.
Thank you for this Great Mod SlammedDine.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

SlammedDime

If you installed, then uninstalled the mod, you'll have to manually uninstall the mod from those files.  You must have uninstalled it between the time you posted the files and the time I posted edited files for you.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Regashi


SlammedDime

Works quite fine for me.  What's it not doing for you?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Regashi

i cant see the quick reply.

SlammedDime

Then you haven't turned it on in your profile.  look and layout preferences > show quick reply:

As I've said in this topic, this does not add quick reply to your board (that is a default feature of SMF).  it only changes it's functionality.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Regashi

Thanks how can i make all on for all the other members


Ncen


Parse error: syntax error, unexpected T_STRING in .../Themes/default/Display.template.php on line 747

738: // Now change the windowbg value so the post displays with the right color (if its waiting approval then it won't change)
739: $windowbg = (($_REQUEST['num_replies']+1) % 2 == 0) ? '"windowbg"' : '"windowbg2"';
740: $buffer = str_replace(array('"windowbg"', '"windowbg2"'), $windowbg, $buffer);
741:
742: // Now we have just the post that we'll insert into the topic, lets add the XML stuff to it for AJAX.
743: $buffer = '<?xml version="1.0" encoding="'. $context['character_set']. '"function template_ajax_reply() {
744: global $context;
745:
746: // Load up the index template, since we need it for some theme settings and call the init function
747: loadTemplate('index');
748: template_init();
749:
750: // First we'll call the template function above to get the post
751: template_main();


I added this mod on my test forum, and now this happens as soon as i try to go into a topic. White page telling me something is wrong. Can't figure out what, though.. o.o'' Does anyone have any idea? (yes, I know that it is telling me what's wrong -  unexpected T_STRING  - but i don't understand what it means.)

Thanks in advance.

SlammedDime

Looks like the mod got installed twice.

I'd use the manual install instructions (found on the download page for the mod) and go through and clean up all of the code from the mod and reinstall it.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Ncen

gosh. :/ I tried uninstalling, and the forum seems to work fine. However. Installing again gives the errors, once more. Should I still clean the codes? :/ Might be easier to install the forum over. since i've not made any important changes to it. I did a backup, but on the wrong forum. Silly me. ><'

It's giving me errors on my real forum aswell, haven't installed it there thought, the display.template gives errors so i wasn't sure if it was safe to install it, i tried figuring the changes out, but with no luck. :/

SlammedDime

If you uninstall it, remnants of the first install will still be there.  It's up to you if you want to simply replace all of your forum files.  Personally, I'd rather just go through the files the mod modifies and triple check them to make sure the mod is completely gone.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Adish - (F.L.A.M.E.R)

I tried doing package parser but this is what i get:-


ERROR: The package-info.xml file is invalid!
Debugging Information
Error message: String could not be parsed as XML
Source: /home/ars/public_html/package.php:114
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/ars/public_html/package.php(114): SimpleXMLElement->__construct('')
#1 /home/ars/public_html/package.php(75): parsePackageInfoXML('/tmp/package-in...', 'install', 'all')
#2 /home/ars/public_html/package.php(758): parseArchive('/tmp/phpvce2fk', 'install', 'all')
#3 {main}
XML File:


Let me know what happened actually..

SlammedDime

Don't use the package parser.  At the same page you can download the mod from, there is a little dropdown box with different versions of SMF.  Choose your version and click submit to get manual instructions.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Adish - (F.L.A.M.E.R)

Yep but it doesnt give theme edits dont they..???

Advertisement: