Random Quote

Started by Marcus Forsberg, January 31, 2009, 06:52:59 PM

Previous topic - Next topic

Marcus Forsberg

I highly doubt a reinstallation is needed.
Try removing/commenting out the code it adds, for example the part in index.template.php.

zeroandone

It was actually the first thing I tried. It didn't work.

I commented out randomQuote() in index.template.php for both the default theme and Prof them.

Here is the link to my site: http://www.voiceofwilderness.net/community/index.php

Thank you so much for helping me.
ASP.NET developer
Drupal fan
Joomla fan
Ubuntu newbie
http://www.codingbeaver.com

Marcus Forsberg

Aha, that means a source file edit is cuasing this.

Try emptying randomQuote() in Load.php, leaving only:

function randomQuote()
{
}

zeroandone

Quote from: Nas on August 28, 2009, 12:33:32 PM
Aha, that means a source file edit is cuasing this.

Try emptying randomQuote() in Load.php, leaving only:

function randomQuote()
{
}


You rock!! It works now. My site is back!!

Thank you so much. But I really want to use this mod, are you going to do some investigation on it?
ASP.NET developer
Drupal fan
Joomla fan
Ubuntu newbie
http://www.codingbeaver.com

Marcus Forsberg

I'm thinking :P Trying to figure something out

zeroandone

Quote from: Nas on August 28, 2009, 12:42:27 PM
I'm thinking :P Trying to figure something out
OK, but please be quick.  :P

Again, you saved my day. Appreciated.
ASP.NET developer
Drupal fan
Joomla fan
Ubuntu newbie
http://www.codingbeaver.com

zeroandone

Sorry it is off topic...but how can I remove the attachment from my previous message? Do I have to delete that thread?
ASP.NET developer
Drupal fan
Joomla fan
Ubuntu newbie
http://www.codingbeaver.com

Marcus Forsberg

Quote from: zeroandone on August 28, 2009, 12:49:14 PM
Sorry it is off topic...but how can I remove the attachment from my previous message? Do I have to delete that thread?

Edit your post, you should see a list of your current attachments, uncheck those you wish to remove. :)

Antaka

Hi, I really want to use this mod, but when I install it (SMF 2.0 RC 1.2) I get an error in the function randomQuote():
Quoteunexpected ',' in line...

This is the line:
<div class="tborder" style="', !empty($modSettings['random_quote_custom_css'] ? $modSettings['random_quote_custom_css'] : 'padding: 5px;' , '">

This is the whole sector of the code:
// Store the stuff.
$output = '<br />
<div class="tborder" style="', !empty($modSettings['random_quote_custom_css'] ? $modSettings['random_quote_custom_css'] : 'padding: 5px;' , '">
<span style="color:', !empty($modSettings['random_quote_label_color']) ? $modSettings['random_quote_label_color'] : '#000000', '; font-weight: bold;">
',!empty($modSettings['random_quote_label_custom']) ? parse_bbc($modSettings['random_quote_label_custom']) : $txt['random_quote_label_standard'],'
</span>
' , parse_bbc($quotes[$number]), '
</div>';


I commented that part and the forum is working again, but I want to use your mod... is there something that I can change in the code to make it work?

Minare

Quote from: Antaka on September 01, 2009, 12:09:35 AM
Hi, I really want to use this mod, but when I install it (SMF 2.0 RC 1.2) I get an error in the function randomQuote():
Quoteunexpected ',' in line...

This is the line:
<div class="tborder" style="', !empty($modSettings['random_quote_custom_css'] ? $modSettings['random_quote_custom_css'] : 'padding: 5px;' , '">

This is the whole sector of the code:
// Store the stuff.
$output = '<br />
<div class="tborder" style="', !empty($modSettings['random_quote_custom_css'] ? $modSettings['random_quote_custom_css'] : 'padding: 5px;' , '">
<span style="color:', !empty($modSettings['random_quote_label_color']) ? $modSettings['random_quote_label_color'] : '#000000', '; font-weight: bold;">
',!empty($modSettings['random_quote_label_custom']) ? parse_bbc($modSettings['random_quote_label_custom']) : $txt['random_quote_label_standard'],'
</span>
' , parse_bbc($quotes[$number]), '
</div>';


I commented that part and the forum is working again, but I want to use your mod... is there something that I can change in the code to make it work?

Same problem here. It gives unexpected character problem and I couldn't figure out

Özgür

Nice Mod Nas. But i need more spesific system. Like this one http://srinig.com/wordpress/plugins/quotes-collection/
I need to add "Author" from each quote. Are you planned this ? =)
So Long

TheListener


Parse error: syntax error, unexpected ',' in /Sources/Load.php on line 3080

Attachment supplied.

vulcan59

Hi Nas,

Long time no see. Hope you are well.  :)

I downloaded and installed without a hitch. Only problem is that the quotes sometimes show up and sometimes they don't. Even when I refresh the page the quotes don't show up or until I go to another page. Have a look here.

Any ideas?

TheListener

Parse error: syntax error, unexpected ',' in /public_html/Sources/Load.php on line 2857

Attachment supplied

TheListener

Quote from: TheListener on October 03, 2009, 12:04:34 PM
Parse error: syntax error, unexpected ',' in /public_html/Sources/Load.php on line 2857

Attachment supplied

BUMP

Antaka

are those "unexpected ',' in line..." errores corrected for the RC1.2?

Marcus Forsberg

Oh my. Sorry for not responding to this one topic for so long.
The parse errors are caused by a huge mistake in the code. I don't know for how long they've been there.
I'll fix it ASAP.

flamechica

Is there anyone that can help me update this for RC2? Or have any ideas for something similar? My members love this and it says it is no longer supported by the mod author.  :'(

aessedai03

I would really love to see an update for this mod also. I was hoping to use it as a "Did you know?" feature for my members who aren't very message board literate...
I am using 1.1.11 and Green Light v1 theme.
http://custom.simplemachines.org/themes/index.php?lemma=1182

Bob Perry of Web Presence Consulting

Ditto, would like to see an SMF 2.0 RC2 version...
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Advertisement: