Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 11:55 pm EST
Geeklog Forums
Quote block doesnt always appear in Forum plugin
Status: offline
SamF
Forum User
Chatty
Registered: 12/04/06
Posts: 43
Hi, I'm using the forum plugin.
When a user quotes another user, the quote usually just formats like this:
-------
QUOTEPosted by: User
This is a question
Hi user! this is an answer!
-------
i.e. the Quote bounding box does not appear.
HOWEVER, when I'm logged in as an administrator, I see the box just fine.
What is causing this?
example
When a user quotes another user, the quote usually just formats like this:
-------
QUOTEPosted by: User
This is a question
Hi user! this is an answer!
-------
i.e. the Quote bounding box does not appear.
HOWEVER, when I'm logged in as an administrator, I see the box just fine.
What is causing this?
example
11
15
Quote
Status: offline
Dazzy
Forum User
Full Member
Registered: 07/19/03
Posts: 200
Location:N. Ireland
Quote formatting is handling by the forum specific css, I see you have modified it slightly, compare the quote code with that from an original file to see if there are any major differences.
Dazzy
Dazzy
9
16
Quote
Status: offline
SamF
Forum User
Chatty
Registered: 12/04/06
Posts: 43
As far as I know, I haven't changed anything in style.css (or any of the forum's css files), except making the green background colors.
Here's the html that's generated when I'm logged in as an admin:
<td class="pluginRow2 pluginLinks"valign="top"><div class="quotetop">QUOTE</div><div class="quotemain">Posted by: Sparrow<p><br />Blah blah blah<br /></div>
...
</td>
Here's the code that's generated when I'm not logged in:
<td class="pluginRow2 pluginLinks"valign="top">QUOTEPosted by: Sparrow<p><br />Blah blah blah<br />...
</td>
So as you can see, it doesn't even try to find the 'quotetop' and 'quotemain' divs. What could be causing this difference in function when I'm logged in as an admin and when I'm not?
Here's the html that's generated when I'm logged in as an admin:
Text Formatted Code
<td class="pluginRow2 pluginLinks"valign="top"><div class="quotetop">QUOTE</div><div class="quotemain">Posted by: Sparrow<p><br />Blah blah blah<br /></div>
...
</td>
Here's the code that's generated when I'm not logged in:
Text Formatted Code
<td class="pluginRow2 pluginLinks"valign="top">QUOTEPosted by: Sparrow<p><br />Blah blah blah<br />...
</td>
So as you can see, it doesn't even try to find the 'quotetop' and 'quotemain' divs. What could be causing this difference in function when I'm logged in as an admin and when I'm not?
12
13
Quote
Status: offline
SamF
Forum User
Chatty
Registered: 12/04/06
Posts: 43
So, I still haven't been able to solve this problem.
Given the odd nature of the problem (quote blocks show up when logged in as an admin, and not otherwise), could anyone give advice as to where I should be searching for the error?
As far as I know, I haven't changed any of the css or layout files associated with the forum. It's possible that I could have changed something by accident, though.
Thanks so much for any help,
Sam
Given the odd nature of the problem (quote blocks show up when logged in as an admin, and not otherwise), could anyone give advice as to where I should be searching for the error?
As far as I know, I haven't changed any of the css or layout files associated with the forum. It's possible that I could have changed something by accident, though.
Thanks so much for any help,
Sam
15
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The forum comes with a piece of CSS that you are supposed to add to your theme's style.css file (all of them, if you have more than one theme). Please refer to the forum's installation instructions for details.
bye, Dirk
bye, Dirk
12
19
Quote
Status: offline
mevans
Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
SamF,
The problem is that current release candidate of the Forum plugin is calling the Geeklog COM_checkHTML() call on all topics, regardless of the Forum configuration setting, this is the first part of the problem.
What is happening is that in your Geeklog config.php file, you do not allow normal users to have <div class=...> HTML ($_CONF['user_html']), so it is filtered out. But, for admins ($_CONF['admin_html']), it is allowed, thus it is there for you when you view.
I have submitted a patch to Blaine to fix my coding error on the first part, only call Geeklog's COM_checkHTML() when properly configured to do so.
You might want to adjust $_CONF['user_html'] to allow for the <div> tag and that will fix things up for you normal users right now.
Thanks!
Mark
The problem is that current release candidate of the Forum plugin is calling the Geeklog COM_checkHTML() call on all topics, regardless of the Forum configuration setting, this is the first part of the problem.
What is happening is that in your Geeklog config.php file, you do not allow normal users to have <div class=...> HTML ($_CONF['user_html']), so it is filtered out. But, for admins ($_CONF['admin_html']), it is allowed, thus it is there for you when you view.
I have submitted a patch to Blaine to fix my coding error on the first part, only call Geeklog's COM_checkHTML() when properly configured to do so.
You might want to adjust $_CONF['user_html'] to allow for the <div> tag and that will fix things up for you normal users right now.
Thanks!
Mark
10
18
Quote
Status: offline
SamF
Forum User
Chatty
Registered: 12/04/06
Posts: 43
Quote by: mevans
You might want to adjust $_CONF['user_html'] to allow for the <div> tag and that will fix things up for you normal users right now.
[/p]
You might want to adjust $_CONF['user_html'] to allow for the <div> tag and that will fix things up for you normal users right now.
[/p]
That works!!!
... and your explanation made so much sense. No wonder I was having a hard time tracking down the problem -- I kept on looking in the forum-specific css and layout files.
Thanks again! :banana:
15
12
Quote
All times are EST. The time is now 11:55 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content