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

Try this Rap4Life...

Install the mod first (if not already installed), then upload this file and overwrite your current template.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Elijah Bliss

Greetings SlammedDime,

On my test forum I am using webtechnica's AA New Damage v2 theme.
I put in hours of work trying to figure out how to apply the ajax quick reply to the theme.

I think I'm almost there, but one major problem, after posting, instead of the post showing up at the bottom of the thread, it shows up at the top of the page.

Any help will be appreciated.
Thanks


Here's the link to my test forum
http://wlcphoto.com/51/forum

user: 007
pass: test

Ajax Quick Reply Test Topic:
http://wlcphoto.com/51/forum/index.php?topic=43.0

On the 3rd page I posted the link to my display template.


tyhgdgh


TechPrince

Some probs in my site. AJAX not working now, it just refreshes the site.

Here is my Display.template file.

Elijah Bliss

I've attached my Display Template to this post:

tyhgdgh

heres mine, without Mediafire

SlammedDime

I'll take care of these tomorrow guys, I don't have my laptop with me that has my test stuff on it right now
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

tyhgdgh

now i know why it isnt working, when you select "Post" it doesnt post, but you need to refresh

EDIT: use this Display, the others didnt have the Quick reply

SlammedDime

Nfanthr33 - Try the attached.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

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

SlammedDime

Quote from: Elijah Bliss on October 29, 2008, 06:40:53 PM
I've attached my Display Template to this post:
I don't see anything wrong, other than the spacing being off, and there is some extra <div> text after ?> that needs to be removed from the file.  I'm not sure what FTP client you're using to upload and download files, but I'd find a new one if that one put that text in there.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Elijah Bliss

Quote from: SlammedDime on October 30, 2008, 04:17:22 PM
Quote from: Elijah Bliss on October 29, 2008, 06:40:53 PM
I've attached my Display Template to this post:
I don't see anything wrong, other than the spacing being off, and there is some extra <div> text after ?> that needs to be removed from the file.  I'm not sure what FTP client you're using to upload and download files, but I'd find a new one if that one put that text in there.

So why does the posted reply show up at the top of the thread instead of showing up at the bottom where it belongs?

SlammedDime

Can you give me a test account to use and see it and test?  It should only be doing that if that's how you have your SMF preferences set.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Elijah Bliss

Quote from: SlammedDime on October 30, 2008, 05:55:06 PM
Can you give me a test account to use and see it and test?  It should only be doing that if that's how you have your SMF preferences set.

link: http://wlcphoto.com/51/forum
user: 007
pass: test

SlammedDime

Ok, after looking closer at your template and actually seeing it in action on your site, this isn't going to work on your template.  Your template uses one large table to hold all of the posts, which are then contained in Div's... so if you have 5 posts on a page, you'll have a table with one cell that has 5 div's inside it.

The way it needs to work for this version of the mod is the way that SMF's default theme works... if there is 5 posts on a page, then there will be one table with 5 cells in it.  The mod then adds another cell to the table that contains the post.

The next version that I release for SMF 2.0 will allow for semantic themes, but I won't be backporting it to 1.1.x, since 1.1.x does not have a semantic theme.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

tyhgdgh

8: Undefined index: view_newest_first
File: /var/www/html/forum/Themes/default/Display.template.php (eval?)
Line: 788


this still happens.....

Elijah Bliss

#456
Quote from: SlammedDime on October 30, 2008, 06:22:18 PM
Ok, after looking closer at your template and actually seeing it in action on your site, this isn't going to work on your template.  Your template uses one large table to hold all of the posts, which are then contained in Div's... so if you have 5 posts on a page, you'll have a table with one cell that has 5 div's inside it.

The way it needs to work for this version of the mod is the way that SMF's default theme works... if there is 5 posts on a page, then there will be one table with 5 cells in it.  The mod then adds another cell to the table that contains the post.

The next version that I release for SMF 2.0 will allow for semantic themes, but I won't be backporting it to 1.1.x, since 1.1.x does not have a semantic theme.

I understand.
Thanks big time for the help.

SlammedDime

Quote from: Nfanthr33 on October 30, 2008, 07:28:58 PM
8: Undefined index: view_newest_first
File: /var/www/html/forum/Themes/default/Display.template.php (eval?)
Line: 788


this still happens.....

Code (find) Select
var view_newest_first = ', $options['view_newest_first'], '

Code (replace) Select
var view_newest_first = ', !empty($options['view_newest_first']) ? $options['view_newest_first'] : '0', ';
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

xakiru

I installed the mod , and fixed the thing of "xml_topic.js" montioned in your first post .... after that  got nothing special , no quick replay...  :'(
i'm using french language ,pretty urls, and babylon theme  ....
my display.template of babylon is attached here ...
Thanks by advence ...

Here is my forum link : www.evanels.eu/forum/ [nofollow]
Personal: www.xakiru.com [nofollow] | Private RO Server: www.sublimero.com [nofollow] |
Working at: www.Divisi0n.com [nofollow]

SlammedDime

Did you enable quick reply?  Did you make an attempt to edit Display.template.php?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: