Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Feedback and Suggestions (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=25)
-   -   Making Guests Have to Register before using Shoutbox (http://www.mysidiaadoptables.com/forum/showthread.php?t=2276)

LucasA33 08-06-2011 01:38 PM

Making Guests Have to Register before using Shoutbox
 
Why is it so you can post shouts when you are a guest?
Can some one make an script making it so when you are an guest, the thing says: "You have to register to use this" or so?

I just want it so guests cannot use this, because it has been creating issues.

Tony 08-06-2011 01:53 PM

you simply have to check if the user is logged on or not, it's probably one or two lines of code, are willing to pay anything for this function?

LucasA33 08-06-2011 02:21 PM

I never planned to pay :<
I would only pay for software, not something modified to get something to work.
I think that is wrong (Look at Minecraft, Devs are wanting money for mods to the game, and now the owner is making an API for Modding)

And if it is just 2 lines of code, couldn't you simply just help me? :cfrown:

Nemesis 08-06-2011 02:51 PM

Programmers seem to suffer the same fate as starving artists :displeased:

Chibi_Chicken 08-06-2011 04:36 PM

open up the shoutbox.php

find
PHP Code:

    if ($isloggedin!="yes") {
        
$user "Guest";
        }
    
$comment $comment;
    
mysql_query("INSERT INTO ".$prefix."shoutbox VALUES ('', '$user', '$date', '$comment')");
    
$article_content $article_content."<p>Your comment has been posted. Click <a href='shoutbox.php'>here</a> to view it.</p>"

I would suggest

PHP Code:

    //if a user is logged in then allow them to post and let them know
    
if ($isloggedin=="yes") {
    
mysql_query("INSERT INTO ".$prefix."shoutbox VALUES ('', '$user', '$date', '$comment')");
    
$article_content $article_content."<p>Your comment has been posted. Click <a href='shoutbox.php'>here</a> to view it.</p>";
        }
     else{
    
$article_content $article_content."<p>You can not post with out logging in.</p>";
     } 

And why does $comment = $comment; is just beyond me.....

EDIT:
oh, not that i am super concerned by this; This type of questions would better fit the Questions and Supports forum as it more of a technical issue.

LucasA33 08-07-2011 10:28 AM

:angrygrin: If all you plan to do in life is make money by doing modifications, you might need a secondary job too; yaknow

:wiii:Thank You Chibi, I was super confused on where to put this, so I tried to place it where I thought it would go best. :happycbig:

Nemesis 08-07-2011 02:51 PM

well programming is a craft and like most digital things people don't see or understand the amount of work that goes into it.

The difference here too is chibi is more experienced and knows the script, and would prolly help you for free, as he did. For me it would of been harder and I would of had to study that part of the script to make sure i did it right. I'd say same applied to tony, would of taken us more effort.

Chibi_Chicken 08-07-2011 05:42 PM

Lucas I hope you test it to make sure that it works the way that you want it to. I only made that as a suggestion, I did not test it (not on my development computer.) So if it starts to give you errors make sure you have a back up.

Programing is a craft and it takes time; time has value, and depending on the person is going to cost differently. I have lots of time and like spending it looking at problems since sometimes I can fix them. :pleased:

LucasA33 08-20-2011 03:56 PM

I am aware how hard scripting is, Believe me, I used to program for a game called Sherwood Dungeon (A game where you explore) which was a diffrent programing language, mind me; but I dear say:

I never asked for money for my programming.
You need to ""get a secondary job"" if all you plan to do in life is make programs and such.
Not calling you lazy, or being an complete jerk telling you to get a job.
I'm just saying: :exexex:

ipengu 08-20-2011 04:08 PM

Not necessarily. I know quite a few people who only do coding for a living, make more in a month than I do running my websites, some with ads, and working a full time job at $13/hr.

All depends on your skill and how much of yourself you want to put into your work.
Always remember there will always be a demand for coders and graphic design people, as there are more people that can't do those things than there are that can.


All times are GMT -5. The time now is 08:23 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.