vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - [AJAX] Arab Lounge - Autoprune included (https://vborg.vbsupport.ru/showthread.php?t=137312)

adhari_com 01-22-2007 10:00 PM

[AJAX] Arab Lounge - Autoprune included
 
:: Introduction
Hello, I've been dealing with vBulletin since the stone ages, I've created many hacks in previous versions for my own Forums but never released to public and keep it exclusive. Recently I've decided to create one of the most requested modification hack in the Arab Forums, the acient hack was called "Hack AlEhda'at" (Greetings Hack). And that's enough reason to call this one like this.

:: What is it?

A simple shout-box like for quick messages that can be displayed any where you like in Forum Home, using the great technology of AJAX we are able to post Arabic Characters correctly, although it requires PHP5.

:: Demo
http://www.adhari.com (Arabic Version Only)

:: Installation
1. Import the Product File
2. Modify the main template LOUNGEHOME to suite your forum design
3. insert the variable $lounge_home anywhere you like in FORUMHOME template
4. Upload the cron job file to includes/cron, then add a New Task that runs once daily.
(The prune limit is set to 24 hours which can be changed within the php file)

:: Change Log
14/01/2008: Added blank messages checking
05/05/2007: Hardened the code to avoid XSS, added a cron job to clean up
26/01/2007: Fixed bugs with FireFox2
25/01/2007: Fixed the Arabic Product File, submit button disabled once clicked to avoid double submissions.

MThornback 01-23-2007 01:51 PM

Your link is broken

adhari_com 01-23-2007 02:01 PM

Sorry, I wanted to demonstrate an English version, not done yet!

Apoco 01-23-2007 04:12 PM

It looks realllly cool!

ArabSQuad 01-23-2007 04:28 PM

looks awesome so far brother :)

Losha 01-23-2007 04:34 PM

Thank you much work actually very good

أنت إنسان عظيم ومصدر فخر لا عدمناك

adhari_com 01-23-2007 04:38 PM

Thanx a million guys ... Keep on testing please, I need to move this into Final version instead of the beta :p

Best Regards.

Terminatoronly 01-23-2007 05:11 PM

its awsem thanks for sharing ;)

VIP66 01-23-2007 05:59 PM

Thank you :)

jwaany 01-23-2007 10:20 PM

Nice hack

Thanks

adhari_com 01-24-2007 06:18 AM

I wish to see real implementation of the hack in pm please.

Thank you all installers :)

ArabSQuad 01-24-2007 02:49 PM

umm well do u think its ok if i used it on abit big forum ?

I tried it on my testing forum

but is it ok to use it on a ( about 3000 visitors daily forum ) ??

would it effect the speed of the forum

thanks :)

Abo_ELleal 01-25-2007 02:36 AM

thanks man

this is arabic hack

and i wish some hack for arabic languges

adhari_com 01-25-2007 04:51 AM

Quote:

Originally Posted by ArabSQuad (Post 1166430)
umm well do u think its ok if i used it on abit big forum ?

I tried it on my testing forum

but is it ok to use it on a ( about 3000 visitors daily forum ) ??

would it effect the speed of the forum

thanks :)

Of course not bro, I'm displaying the latest 30 messages, using the built-in utilization of the vBulletin ... and also fixed the submit button to avoid double submissions!

You can even allow general visitors to post, but I'd love to know if it "did" actually causes any load. Thanx for installing ya man :)

adhari_com 01-25-2007 04:54 AM

Quote:

Originally Posted by Abo_ELleal (Post 1166778)
thanks man

this is arabic hack

and i wish some hack for arabic languges

Translation is too easy, inventing that counts doesn't really matter in which language!

Hornstar 01-25-2007 06:18 AM

hopefully you will have an english version shortly however you said you have been dealing with vb since 1998. but on vbulletin.com it says this Copyright ©2000 - 2007, Jelsoft Enterprises Ltd. ^^ couldnt but help notice it lol

adhari_com 01-25-2007 07:14 AM

Quote:

Originally Posted by hornstar1337 (Post 1166870)
hopefully you will have an english version shortly however you said you have been dealing with vb since 1998. but on vbulletin.com it says this Copyright ?2000 - 2007, Jelsoft Enterprises Ltd. ^^ couldnt but help notice it lol

I meant php, Thank you Mr. Detective :D

futureye 01-25-2007 09:00 AM

its awsem thanks for sharing

I will reserve a copy for testing it.


www.surcity.net/forums

Stoebi 01-25-2007 12:02 PM

Thank you very much. But it works not 100% with Firefox 2.0.0.1 marquee is not working with FF correctly.

I'ved changed this to:
Code:

<script type="text/javascript">
<!--
    document.write('<marquee id="arab_lounge_marquee" direction="left" scrollamount="6" onmouseover="this.stop()"onmouseout="this.start()">$latestlounge</marquee>');
//-->
</script>

In function delete_lounge(loungeid) the variable lounge_but need to be set:
Code:

lounge_but = loungeid;
With Firefox; After I send a message I get a js error:
Quote:

Error: eventobj.target.form has no properties
Source: http://team.xxx.org/clientscript/vbu...lobal.js?v=364
Line: 233
Can't fix at the moment. Any ideas?

With FF please try to send a message as a group with no access to use the message system.

Both templates need to be cached. They are uncached at the moment.



Regards,

Stoebi

+Fares+ 01-25-2007 02:50 PM

didnt work with me , i went to vbulletin opetion and i couldn't find it there .. i looked for arab lounge ..? v of the forum ( 3.6.4 )

VaaKo 01-25-2007 09:27 PM

I can't find the copyright notice where you're linkin to your forum, I would like to keep the copyright notice but without the link please.

I hope you'd understand!

VaaKo 01-25-2007 09:53 PM

/me clicks install!

adhari_com 01-26-2007 12:33 PM

Quote:

Originally Posted by Stoebi (Post 1166981)
Thank you very much. But it works not 100% with Firefox 2.0.0.1 marquee is not working with FF correctly.

I'ved changed this to:
Code:

<script type="text/javascript">
<!--
    document.write('<marquee id="arab_lounge_marquee" direction="left" scrollamount="6" onmouseover="this.stop()"onmouseout="this.start()">$latestlounge</marquee>');
//-->
</script>


1. Replaced this with the template itself?

Quote:

Originally Posted by Stoebi (Post 1166981)
In function delete_lounge(loungeid) the variable lounge_but need to be set:
Code:

lounge_but = loungeid;

2. Thank you I will fix that too.
Quote:

Originally Posted by Stoebi (Post 1166981)
With Firefox; After I send a message I get a js error:

Can't fix at the moment. Any ideas?

With FF please try to send a message as a group with no access to use the message system.

Quote:

Originally Posted by Stoebi (Post 1166981)
Both templates need to be cached. They are uncached at the moment.

3. u'll save alot of time for me if u'd help me on this?

Thanks alot.

adhari_com 01-26-2007 12:36 PM

Quote:

Originally Posted by +Fares+ (Post 1167052)
didnt work with me , i went to vbulletin opetion and i couldn't find it there .. i looked for arab lounge ..? v of the forum ( 3.6.4 )

Have you imported the product correctly?
which one have u used?

adhari_com 01-26-2007 12:39 PM

Of course, you can remove the link.

adhari_com 01-26-2007 02:11 PM

Bugs fixed with FireFox2 ... much faster browser :)

Wachtmeister 01-26-2007 02:19 PM

Hi,

nice idea. Is it possible to have this scroller on every page? Also on a vbadvanced startpage?

Regards, Wachtmeister

salil 01-26-2007 04:37 PM

Awesome, thanx bro..

بارك الله بك أخوي

كن بخير

+Fares+ 01-26-2007 05:04 PM

oki after importing the xml file it says next to arab loung v 1,01

+Fares+ 01-26-2007 05:08 PM

should i go to this where it says Loung settings ? coz i saw this ..

now lets say i reached this loung setting .. then whats now ? how can my ppl post msgs ?

adhari_com 01-27-2007 01:35 PM

Quote:

Originally Posted by Wachtmeister (Post 1167766)
Hi,

nice idea. Is it possible to have this scroller on every page? Also on a vbadvanced startpage?

Regards, Wachtmeister

Of course, if u edit the plugin titled "Lounge AJAX Handler" to be hooked into the global start, as for vBadvanced don't forget to globalize the variable $lounge_home.

Hope you tell it's working :)

adhari_com 01-27-2007 01:52 PM

Quote:

Originally Posted by +Fares+ (Post 1167874)
should i go to this where it says Loung settings ? coz i saw this ..

now lets say i reached this loung setting .. then whats now ? how can my ppl post msgs ?

Please make sure it shows the latest version, and please read installation instruction no. 3 where it says put $lounge_home anywhere in the FORUMHOME template.

PM me if needed.

karem_bumy 01-27-2007 04:15 PM

Thank you much work actually very good

ممتاز جدا جدا جدا اخوى

ولكن هناك فكرة للتطوير الهاك وهيةى اضافة ايكونات واسميلز

وثانى شىء ايضا هنا مشكلة

اذا كرريت الضغط على الزر الاضافة اكثر من مرة

بيحصل تكرار للكلام

adhari_com 01-27-2007 10:56 PM

A tiny smilies panel is in mind, and please make sure u're having the updated one, it was noted before and I have done what's required to disable the button once clicked.

+Fares+ 02-06-2007 10:31 AM

worked fine thanks alot brother...

but the msgs goes a little fast any way to reduce the speed ?

i have another request... now i submitted my msg ... any way to edit it after it posted ?

adhari_com 02-06-2007 03:47 PM

editing msgs would be wonderful of course, but too much over!

as for the speed and scrollamount you can change from the template LOUNGEHOME

Kadi 02-08-2007 02:11 PM

Thanks Hassan for the hack. I've been looking for something like this for awhile. I've installed it on my test page.

Is it possible to control the speed and colors? Like in Atakan's mod.

Is there a limit to how many messages can be posted? Are they deleted automatically once a limit is reached?

How is the image changed that is at the beginning of the scroll? And the one between each msg?

Also, I visited your forum...very nice :) . Will you be releasing the latest posts hack (akher almawadhee3)?

Alot of questions...sorry. :o

Thanks again. (Shukran jazeelan!)

adhari_com 02-09-2007 02:05 PM

It's really a pleasure to answer your questions, I'm sorry about not being able to control the speed as from the vBulletin Settings it's just much of a hasle and wasting memory space! You can change these things from the ScrollDelay and ScrollAmount from within the main template LOUNGEHOME.

the messages limitation is 30 and they are not deleted from the system, I will release a later version with either a cron job or just a simple SQL.

Both images can be found and changed from the LOUNGEHOME just a nice HTML Editor (Frontpage).

As for the latest thread it's simple with minor chnages by me, I'll see what I can release about that.
Thank you.

Kadi 02-09-2007 09:34 PM

I found one image and replaced it but I couldn't find the image that's in between the messages (the icon).

So if it reaches 30 messages it won't accept anymore until the old ones are deleted by the admin?

Also, I don't understand why there is "mn" or 'from' since the posters nick will be shown next to his/her message anyway.

Thanks :)

adhari_com 02-10-2007 04:30 PM

The icon between the msgs can be change from the plugin itself

Product Manage -> Plugins -> Arab Lounge Handler
Look for: icon

The latest 30 will be displayed.
From is meant to be "From where are you now sending" :D


All times are GMT. The time now is 11:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01366 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete