PDA


View Full Version : Quote It Module


Acido
05-18-2004, 12:05 AM
This a module for this hack:

http://www.vbulletin.org/forum/showthread.php?t=62470

Simply install it, and if you want show the quotes in the vBadvanced CMPS, use follow this instuctions:

1) Upload the showquotes.php file to the Modules Folder
2) Rename the randomquote template (included in the hack) to adv_portal_randomquote
3) Create a new module choosing showquotes.php as the file, and adv_portal_randomquote as Template used.

Note: Is better use it as a CENTER module.

Regards :)

Note: I upload the showquotes FIXED . Now it works, or you can use the quote.php severals posts below. Both scripts works fine ;)

Thanatos
05-19-2004, 02:24 AM
I installed the quoteit hack and tested it on my forumhome template and it worked.

So I copied in your module and followed those instructions and it didn't work.

So I tried a bazillion changes. Nothing worked.

finally, I copied the MYSQL syntax that is in the module and put it above the ?> at the bottom of the page in vba_cmps_include_top.php file.

Then it worked.

Not sure if there is a correct way to get it to work or why I had to do that when the actual hack install works fine...but it worked.

Acido
05-19-2004, 02:39 PM
finally, I copied the MYSQL syntax that is in the module and put it above the ?> at the bottom of the page in vba_cmps_include_top.php file.

Then it worked.

Not sure if there is a correct way to get it to work or why I had to do that when the actual hack install works fine...but it worked.
That is not the better way...
Yhis script works to me, but try this one:

http://www.vbulletin.org/forum/showpost.php?p=513478&postcount=119

With that script you dont need rename any template. Simply create a center module with that file (quote.php), and randomquote as template used. I'm sure that it works.

Thanatos
05-19-2004, 03:28 PM
Okay...I'll try that tonight when I am home.

Hopefully it will work, but if not, at least I have a work-around.

Thanatos
05-20-2004, 09:52 PM
Forgot to post, the quote.php file from that thread made it all work correctly.

nineball
05-20-2004, 11:45 PM
Here is the version of quote.php which I posted on the vbulletin.org site for those who want to try it.

contramontanum
06-01-2004, 11:07 PM
I'm a little bit confused about how to make this hack work. All I know is that what I'm doing now isn't right. OK, bear with me and I'll try to explain (and hopefully someone can point out the obvious to me... :( )

I installed the quote hack from vB.org. On my board what used to be cmps_index.php has been renamed to index.php, and what used to be index.php is now forum.php, so the file edits for index.php were applied to forum.php (I hope that made sense). All other edits/uploads were done as per instructions. What I got can be seen in the attached pic, also check out my board (http://www.loudmouthforums.org) to see what I'm talking about.

I hope somebody can set me straight here because this is a hack that I really would like. Thanks.

Thanatos
06-02-2004, 12:52 AM
Download the quote.php which is in the post above yours, that fixed the problem that I Was experiencing, which appears to be the one you are experiencing.

Acido
06-02-2004, 03:32 AM
My script is fixed now. The script from nineball works fine too :)

contramontanum
06-02-2004, 08:51 AM
I'm stumped. None of the alternative quote files uploaded to the modules folder made any difference. I've also noticed something else. Before changing the name of the randomquote template the incomplete quote box shows, but when changed to adv_portal_randomquote it disappears...

Thanatos
06-03-2004, 11:32 AM
Try copying the mysql syntax from the module into the vba_cmps_include_top.php file above the last line and re-setup following the instructions...if it works, there isn't any reason why you shouldn't be able to get this to work normally...if it doesn't work, you may have other issues.

TYorke
06-05-2004, 04:39 AM
I'm having the exact same problem as contramontanum. How was it resolved? I'd really like to know.

Thanks!

TYorke
06-05-2004, 05:09 AM
I'm having the exact same problem as contramontanum. How was it resolved? I'd really like to know.

Thanks!

D'oh! never mind, I'm an idiot :D

Sometimes the most obvious is the answer to anything! I was missing the OR part so I was making use of the quote.php file AND the template randomquote.

I selected the file and deleted the template name, now it all works great. Thanks for this module! :D

TYorke
06-05-2004, 05:44 AM
BTW I wasn't too thrilled with the 'style' that was provided with this module. So I edited to better match the other boxes (see attached)

Personally, I don't display the quotes on main page of the forums. No need really. I am quite content to have that feature available only to the main page of the portal. So if you like to display the box on both areas, then this edit will not work as desired. I also edited the phrases.

If anyone is interested in this, then let me know and I will post my template :D

TYorke
06-05-2004, 06:12 AM
BTW I wasn't too thrilled with the 'style' that was provided with this module. So I edited to better match the other boxes (see attached)

Personally, I don't display the quotes on main page of the forums. No need really. I am quite content to have that feature available only to the main page of the portal. So if you like to display the box on both areas, then this edit will not work as desired. I also edited the phrases.

If anyone is interested in this, then let me know and I will post my template :D

WTF! Suddenly the quotes stopped showing altogether, what gives!?

contramontanum
06-05-2004, 09:59 AM
OK guys, thanks for all help so far. :) I'm getting there, but I'm still not quite there...

I re-installed everything from scratch and this is what I've got so far (see attachment). It lets me add a new quote, but it never actually shows up on the page. Also, when I click on "View all" there's nothing there. Any suggestions?

TYorke: If I ever get this to work I'd be interested in your template.

TYorke
06-05-2004, 02:17 PM
OK guys, thanks for all help so far. :) I'm getting there, but I'm still not quite there...

I re-installed everything from scratch and this is what I've got so far (see attachment). It lets me add a new quote, but it never actually shows up on the page. Also, when I click on "View all" there's nothing there. Any suggestions?

TYorke: If I ever get this to work I'd be interested in your template.

NP, when you're ready send me an email and I will send it to you. Another thing, could this be related to some 'security' settings? The reason I ask is because when I visit your forums, I can actually read the quote (John Ashcroft?) can anyone else confirm this?

I am having the same kind of luck contramontanum. So if you ever get it to work correctly, also get in touch with me :)

contramontanum
06-05-2004, 02:33 PM
The John Ashcroft quote is just in a regular module where I input stuff manually. Seeing as I'm rather php retarded I'm just waiting for someone smarter to come to the rescue. Will contact you reg template when (and if :rolleyes: ) I get things working.

TYorke
06-05-2004, 07:09 PM
The John Ashcroft quote is just in a regular module where I input stuff manually. Seeing as I'm rather php retarded I'm just waiting for someone smarter to come to the rescue. Will contact you reg template when (and if :rolleyes: ) I get things working.

Hmmm...Have tried using the random picture module? perhaps you could use that to upload several .txt files with individual quotes in it and have the module randomly display each .txt file...Theorically, it would work. Give it a shot and let me know if it works :)

jaliam
06-23-2004, 11:07 AM
Where can I find the randomquote template? How do I create it?

Acido
06-23-2004, 07:56 PM
Where can I find the randomquote template? How do I create it?
Ramdonquote is a template from the original hack: quote it.
If you have the hack, you have the template ;)

jaliam
06-24-2004, 01:36 AM
Ramdonquote is a template from the original hack: quote it.
If you have the hack, you have the template ;)
Thanks, Acido! I don't believe I have this hack so let me go ahead and install it first. Where can I find this hack? Is it posted in www.vbulletin.org? Please advice. ;)

Acido
06-24-2004, 05:17 AM
Thanks, Acido! I don't believe I have this hack so let me go ahead and install it first. Where can I find this hack? Is it posted in www.vbulletin.org? (http://www.vbulletin.org/?) Please advice. ;)
Check the link to the hack in the first post of this thread ;)

Mellow
09-03-2004, 10:53 PM
I'm a little bit confused about how to make this hack work. All I know is that what I'm doing now isn't right. OK, bear with me and I'll try to explain (and hopefully someone can point out the obvious to me... :( )

I installed the quote hack from vB.org. On my board what used to be cmps_index.php has been renamed to index.php, and what used to be index.php is now forum.php, so the file edits for index.php were applied to forum.php (I hope that made sense). All other edits/uploads were done as per instructions. What I got can be seen in the attached pic, also check out my board (http://www.loudmouthforums.org) to see what I'm talking about.

I hope somebody can set me straight here because this is a hack that I really would like. Thanks.


This VBorg thread fixed my problem which appeared to be the same as yours. Go into the phrase manager, edit any phrase and click save without changing anything.
http://www.vbulletin.org/forum/showpost.php?p=485337&postcount=19

Kizzmet
10-07-2004, 06:28 PM
Is there a way I can get Quotes that need to be moderated to appear in the Quick Mod block on the CPMS homepage?

Thanatos
11-22-2004, 03:10 AM
I needed Quotes added to my vBadvanced Moderation module and since I couldn't find it anywhere, I kinda hacked one together.

I'm not a coder..and don't really 'get' php too well...but it worked for me, so here ya go.

KW802
12-11-2004, 02:03 AM
Thanatos,

Thanks... that saved me a few minutes tonight. :cool:

bumwrap
01-30-2005, 10:17 PM
I tried & am getting this response.

Database error in vBulletin 3.0.5:

Invalid SQL:
SELECT * FROM quotes WHERE approved=1 ORDER BY rand() LIMIT 1

mysql error: Table 'mamanatu_vbulletin.quotes' doesn't exist

mysql error number: 1146

ncangler
02-02-2005, 03:18 AM
Kevin,

Do you know if the Quote-It module is working okay under 3.0.6? Thanks.

KW802
02-02-2005, 03:29 AM
It should as it's not dependent upon the VB tables too much. So far I've used it with 0.3, 0.4, and .05 (haven't upgraded to 0.6 yet).

ncangler
03-08-2005, 06:20 PM
I am trying to install this hack but I cannot find the Randomquote template. It was not included in the Quoteit1.2 download. Any direction is most appreciated.

Mr.Monkey
11-30-2005, 11:11 PM
Just a quick update of Thanatos' quick moderation link, so that it works with 3.5.x:

[Tweak] Adding Quotes Moderation link to vBadvanced CMPS Moderation Module
By: Thanatos (thanatos@miratos.com)
Site: http://www.miratos.com/
-------------------------------------------------------------------------------------------------------------------
Open Moderate.php from the modules folder:

Find:

$users = $db->query_first("SELECT COUNT(*) AS users FROM " . TABLE_PREFIX . "user WHERE usergroupid = 4");
$users['count'] = vb_number_format($users['count']);

Add Below:

$quotecount = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX ."quotes WHERE approved = 0");
$quotes['count'] = vb_number_format($quotecount['count']);

Close/Save and upload back to the directory.
-------------------------------------------------------------------------------------------------------------------
Go into Phrase Manager, vBadvanced CMPS Phrases, Add new Phrase

Varname: moderate_quotes
Text: <a href="{2}" target="_blank">Quotes</a> ({1})

save.
-------------------------------------------------------------------------------------------------------------------
Go into Style Manager, Whatever Style you want to modify, vBadvanced CMPS Templates and open adv_portal_moderation:

Find:
<div><phrase 1="$users[count]" 2="$vboptions[bburl]/$admincpdir/user.php?do=moderate">$vbphrase[x_users]</phrase></div>

Add Below:
<div><phrase 1="$quotes[count]" 2="$vboptions[bburl]/$admincpdir/quoteadmin.php?do=moderate">$vbphrase[moderate_quotes]</phrase></div>
-------------------------------------------------------------------------------------------------------------------
Done. Enjoy.

funinthesun
01-11-2006, 06:28 AM
I've tried adding this with both quote.php and showquotes.php but nothing shows up at all?

Thanatos
01-28-2006, 01:54 PM
Thanks Mr. Monkey, I was just getting around to that today actually. I appreciate it.