Author Topic: Flash Games Category  (Read 4949 times)

0 Members and 1 Guest are viewing this topic.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Flash Games Category
« on: September 03, 2008, 09:51:23 PM »
Hallo zusammen,

ich wollte eine weitere Kategorie anlegen, in der ich Flashspiele hochlade, welche die User dann spielen können. Meine Frage ist, ob es möglich ist, dass diese Spiele nicht unter "Neue Bilder" - "Random Images" und "Top10" vorkommen?

Also das man die Kategorie von dem eigentlichen Gallery geschehen (ich sag jetzt mal) abschneidet?

Is it, that one can lay out another category in possible the I can upload flash Games? However, Game shall not be listed the flash such as under the Top10
« Last Edit: September 04, 2008, 02:33:13 AM by Phisker B »

Offline arindra

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: Flash Games Category
« Reply #1 on: September 08, 2008, 09:20:34 PM »
yes this is possible , but there is no options inside 4images by default probably .,... it would need to be custom coded

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: Flash Games Category
« Reply #2 on: September 08, 2008, 09:39:55 PM »
give me :D

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Flash Games Category
« Reply #3 on: September 09, 2008, 01:52:52 AM »
Create new category, remember it's ID.

(In changes below replace all XX with your category ID)
"Top 10": In top.php find:
$cat_id_sql get_auth_cat_sql("auth_viewcat""NOTIN");

Insert below:$cat_id_sql .= ", XX";


"New images": In index.php find:
Code: [Select]
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
Replace with:
Code: [Select]
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").", XX)


"Random image": In includes/functions.php find:
  $cat_id_sql get_auth_cat_sql("auth_viewcat""NOTIN"); 

Insert below:
 $cat_id_sql .= ", XX";
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: Flash Games Category
« Reply #4 on: September 09, 2008, 09:22:28 AM »
OMGF! V@no, thank you! Im Testing it!

Offline herahadi

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Flash Games Category
« Reply #5 on: December 30, 2008, 02:01:16 AM »
Hallo zusammen,

ich wollte eine weitere Kategorie anlegen, in der ich Flashspiele hochlade, welche die User dann spielen können. Meine Frage ist, ob es möglich ist, dass diese Spiele nicht unter "Neue Bilder" - "Random Images" und "Top10" vorkommen?

Also das man die Kategorie von dem eigentlichen Gallery geschehen (ich sag jetzt mal) abschneidet?

Is it, that one can lay out another category in possible the I can upload flash Games? However, Game shall not be listed the flash such as under the Top10

hello..im interest with your question bcoz i have website like yours but i cant understand your languange..could someone please translate his question to english or indonesia language please..
« Last Edit: December 30, 2008, 02:14:44 AM by herahadi »